package com.delivery.deliverysystem.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;

/**
 * 系统日志记录表
 * @TableName system_log
 */
@TableName(value ="system_log")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SystemLog implements Serializable {
    /**
     * 日志id
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    @ApiModelProperty("日志id")
    private Integer logId;

    /**
     * 系统操作员名称
     */
    @ApiModelProperty("系统操作员名称")
    private String username;

    /**
     * 操作类型(0为登录，1为登出)
     */
    @ApiModelProperty("操作类型(0为登录，1为登出)")
    private Integer operateType;

    /**
     * 操作说明
     */
    @ApiModelProperty("操作说明")
    private String operation;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}